package com.atxiaodei.kabudashejimoshi.工厂模式.抽象工厂方法模式;

/**
 * @ClassName Demo
 * @Deacription 测试抽象工厂
 * @Author 卡布达
 * @Date 2021/10/12 12:29
 * @Version 1.0
 **/
public class Demo {
    public static void main(String[] args) {
        JavaCourseFactory javaCourseFactory = new JavaCourseFactory();
        javaCourseFactory.createVideo().record();
        javaCourseFactory.createNote().edit();

        System.out.println("------------------------------------------------------");
        PythonCourseFactory pythonCourseFactory = new PythonCourseFactory();
        pythonCourseFactory.createNote().edit();
        pythonCourseFactory.createVideo().record();

    }
}
